! function(t) {
    var e = {};

    function n(r) {
        if (e[r]) return e[r].exports;
        var o = e[r] = {
            i: r,
            l: !1,
            exports: {
                __esModule: undefined
            }
        };
        return t[r].call(o.exports, o, o.exports, n), o.l = !0, o.exports
    }
    n.m = t, n.c = e, n.d = function(t, e, r) {
        n.o(t, e) || Object.defineProperty(t, e, {
            enumerable: !0,
            get: r
        })
    }, n.r = function(t) {
        "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
            value: "Module"
        }), Object.defineProperty(t, "__esModule", {
            value: !0
        })
    }, n.t = function(t, e) {
        if (1 & e && (t = n(t)), 8 & e) return t;
        if (4 & e && "object" == typeof t && t && t.__esModule) return t;
        var r = Object.create(null);
        if (n.r(r), Object.defineProperty(r, "default", {
                enumerable: !0,
                value: t
            }), 2 & e && "string" != typeof t)
            for (var o in t) n.d(r, o, function(e) {
                return t[e]
            }.bind(null, o));
        return r
    }, n.n = function(t) {
        var e = t && t.__esModule ? function() {
            return t["default"]
        } : function() {
            return t
        };
        return n.d(e, "a", e), e
    }, n.o = function(t, e) {
        return Object.prototype.hasOwnProperty.call(t, e)
    }, n.p = "", n(n.s = 14)
}([, function(t, e, n) {
    "use strict";
    var r = Object.prototype.hasOwnProperty,
        o = Object.prototype.toString,
        a = Object.defineProperty,
        i = Object.getOwnPropertyDescriptor,
        c = function(t) {
            return "function" == typeof Array.isArray ? Array.isArray(t) : "[object Array]" === o.call(t)
        },
        u = function(t) {
            if (!t || "[object Object]" !== o.call(t)) return !1;
            var e, n = r.call(t, "constructor"),
                a = t.constructor && t.constructor.prototype && r.call(t.constructor.prototype, "isPrototypeOf");
            if (t.constructor && !n && !a) return !1;
            for (e in t);
            return void 0 === e || r.call(t, e)
        },
        s = function(t, e) {
            a && "__proto__" === e.name ? a(t, e.name, {
                enumerable: !0,
                configurable: !0,
                value: e.newValue,
                writable: !0
            }) : t[e.name] = e.newValue
        },
        p = function(t, e) {
            if ("__proto__" === e) {
                if (!r.call(t, e)) return;
                if (i) return i(t, e).value
            }
            return t[e]
        };
    t.exports = function f() {
        var t, e, n, r, o, a, i = arguments[0],
            l = 1,
            d = arguments.length,
            _ = !1;
        for ("boolean" == typeof i && (_ = i, i = arguments[1] || {}, l = 2), (null == i || "object" != typeof i && "function" != typeof i) && (i = {}); l < d; ++l)
            if (null != (t = arguments[l]))
                for (e in t) n = p(i, e), i !== (r = p(t, e)) && (_ && r && (u(r) || (o = c(r))) ? (o ? (o = !1, a = n && c(n) ? n : []) : a = n && u(n) ? n : {}, s(i, {
                    name: e,
                    newValue: f(_, a, r)
                })) : void 0 !== r && s(i, {
                    name: e,
                    newValue: r
                }));
        return i
    }
}, function(t, e, n) {
    "use strict";
    e.__esModule = !0, e.addUrlParam = e.getQueryParam = e.getQueryMap = e.getQuery = e.getHref = void 0;
    e.getHref = function() {
        try {
            return location.href
        } catch (t) {
            try {
                return document.URL
            } catch (t) {}
        }
        return ""
    };
    e.getQuery = function(t) {
        var e = t ? 1 : 0;
        try {
            return location.search.substr(e)
        } catch (o) {
            try {
                var n = document.URL,
                    r = n.indexOf("?");
                if (r >= 0) return n.substr(r + e)
            } catch (o) {}
        }
        return ""
    };
    e.getQueryMap = function() {
        for (var t = {}, n = e.getQuery(!0).split("&"), r = 0; r < n.length; r++) {
            var o = /(.*?)=(.*)/.exec(n[r]);
            o && (t[o[1]] = o[2])
        }
        return t
    };
    e.getQueryParam = function(t) {
        return e.getQueryMap()[t]
    };
    var r = function(t, e, n) {
        if (-1 != t.indexOf("?")) {
            var r = new RegExp("(\\?|&" + e + ")=[^&]*");
            t = r.test(t) ? t.replace(r, "$1=" + n) : t + "&" + e + "=" + n
        } else t = t + "?" + e + "=" + n;
        return t
    };
    e.addUrlParam = function(t, e) {
        var n;
        for (n in e) "undefined" != typeof e[n] && (t = r(t, encodeURIComponent(n), encodeURIComponent("" + e[n])));
        return t
    }
}, function(t, e, n) {
    "use strict";

    function r() {
        return Math.floor(1e8 * Math.random())
    }
    var o = function(t) {
            t = t ? 1 : 0;
            try {
                return u(location.search.substr(t))
            } catch (r) {
                try {
                    var e = document.URL,
                        n = e.indexOf("?");
                    if (n >= 0) return u(e.substr(n + t))
                } catch (r) {}
            }
            return ""
        },
        a = {};
    ! function() {
        for (var t = o(!0).split("&"), e = 0; e < t.length; e++) {
            var n = /(.*?)=(.*)/.exec(t[e]);
            n && (a[n[1]] = n[2])
        }
    }();
    var i = a.sess;

    function c(t) {
        a.sess = t
    }

    function u(t) {
        try {
            return a ? t.replace(i, a.sess) : t
        } catch (e) {
            return t
        }
    }
    window.captchaConfig && window.captchaConfig.sess && c(window.captchaConfig.sess);
    t.exports = {
        href: function() {
            try {
                return location.href
            } catch (t) {
                try {
                    return document.URL
                } catch (t) {}
            }
            return ""
        },
        getQuery: function(t) {
            var e = o();
            return e = e ? e.replace(/&rand=[^&]+/, "") + "&rand=" + r() : "?rand=" + r(), t = t ? 1 : 0, e.substr(t)
        },
        queryParam: function(t) {
            return a[t]
        },
        queryMap: function() {
            return $.extend({}, a)
        },
        parse2rgb: function(t) {
            if (!t || "string" != typeof t) return null;
            t = t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, function(t, e, n, r) {
                return e + e + n + n + r + r
            });
            var e = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
            return e ? {
                r: parseInt(e[1], 16),
                g: parseInt(e[2], 16),
                b: parseInt(e[3], 16),
                s: "#" + e[1] + e[2] + e[3]
            } : null
        },
        arrIndexOf: function(t, e) {
            if ("function" == typeof t.indexOf) return t.indexOf(e);
            for (var n = 0; n < t.length; n++)
                if (t[n] === e) return n;
            return -1
        },
        updateSession: c,
        isLowIE: function() {
            var t = navigator.userAgent.toLowerCase(),
                e = t.indexOf("msie") > -1,
                n = void 0,
                r = void 0;
            if (e) {
                if (n = t.match(/msie ([\d.]+)/)[1], r = e && document.documentMode, n && n <= 8) return !0;
                if (r && r < 9) return !0
            }
            return !1
        }
    }
}, function(t, e, n) {
    "use strict";

    function r(t, n, r) {
        return "terror_" + e.ErrorCode[t] + "_" + n + "_" + Math.floor((new Date).getTime() / 1e3) + (r ? "_" + r : "")
    }

    function o() {
        return "@" + Math.random().toString(36).substr(2)
    }
    e.__esModule = !0, e.getRandStr = e.getErrorRes = e.getErrorTicket = e.ErrorCode = void 0, e.ErrorCode = {
        ENTRYJS_LOAD_ERROR: 1001,
        CAPTCHA_SHOW_TIMEOUT: 1002,
        FRAMEJS_LOAD_TIMEOUT: 1003,
        FRAMEJS_LOAD_ERROR: 1004,
        FRAMEJS_RUN_ERROR: 1005,
        GET_CAPTCHA_CONFIG_REQUEST_ERROR: 1006,
        PRE_TEMPLATE_LOAD_TIMEOUT: 1007,
        IFRAME_LOAD_TIMEOUT: 1008,
        LIB_JQ_LOAD_ERROR: 1009,
        CAPTCHA_JS_LOAD_ERROR: 1010,
        CAPTCHA_JS_RUN_ERROR: 1011,
        REFRESH_ERROR: 1012,
        VERIFY_ERROR: 1013
    }, e.getErrorTicket = r, e.getErrorRes = function(t, n, a) {
        return {
            ret: 0,
            randstr: o(),
            ticket: r(t, n || "", a),
            errorCode: e.ErrorCode[t],
            errorMessage: t.toLowerCase()
        }
    }, e.getRandStr = o
}, function(t, e, n) {
    "use strict";
    var r = function() {
        var t = 1,
            e = /subsid=(\d+)/.exec(location.href);
        e && (t = parseInt(e[1], 10) + 1);
        var n = function(e, n) {
            var r = n || t;
            return e = /subsid=\d+/.test(e) ? e.replace(/subsid=\d+/g, "subsid=" + r) : e + "&subsid=" + r, n || t++, e
        };
        return n.get = function() {
            return t
        }, n.bind = function() {
            var e = t++;
            return function(t) {
                return n(t, e)
            }
        }, n
    }();
    t.exports = r
}, function(t, e, n) {
    "use strict";
    e.__esModule = !0, e.getScriptUrl = e.getScript = void 0, e.getScript = function r(t, e) {
        var n = 3,
            o = t.src,
            a = t.successCheck,
            i = t.success,
            c = t.error,
            u = t.crossOrigin,
            s = Boolean(t.inHead) ? document.getElementsByTagName("head").item(0) : document.getElementsByTagName("body").item(0),
            p = !1,
            f = document.createElement("script");

        function l(t) {
            if (!p) {
                var e = !1;
                t && "type" in t && (e = "load" === t.type), "readyState" in this && /^(loaded|complete)$/.test(this.readyState) && (e = !0), e && (!a || a() ? (_(), p = !0, null === i || void 0 === i || i()) : d())
            }
        }

        function d() {
            p || (_(), p = !0, (e = e || 1) >= n ? null === c || void 0 === c || c() : r({
                src: o,
                successCheck: a,
                success: i,
                error: c
            }, e + 1))
        }

        function _() {
            try {
                s && f && s.removeChild(f)
            } catch (c) {}
        }
        f.type = "text/javascript", f.async = !0, f.src = o, u && f.setAttribute("crossorigin", u), "onload" in f ? f.onload = l : f.onreadystatechange = l, f.onerror = d, null === s || void 0 === s || s.appendChild(f)
    }, e.getScriptUrl = function() {
        try {
            throw new Error("domain")
        } catch (n) {
            var t = null === n || void 0 === n ? void 0 : n.stack;
            if (!t) return;
            var e = ("" + t).match(/(https?:\/\/.*\.js)/);
            return {
                url: null === e || void 0 === e ? void 0 : e[1],
                stack: t
            }
        }
    }
}, , , function(t, e, n) {
    "use strict";
    t.exports = {
        add: function(t, e, n) {
            t && (t.addEventListener ? t.addEventListener(e, n, !1) : t.attachEvent ? t.attachEvent("on" + e, n) : t["on" + e] = n)
        },
        remove: function(t, e, n) {
            t && (t.removeEventListener ? t.removeEventListener(e, n, !1) : t.detachEvent ? t.detachEvent("on" + e, n) : t["on" + e] = null)
        }
    }
}, function(module, exports, __webpack_require__) {
    "use strict";
    var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
        return typeof t
    } : function(t) {
        return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
    };
    "object" !== ("undefined" == typeof JSON ? "undefined" : _typeof(JSON)) && (JSON = {}),
    function() {
        var rx_one = /^[\],:{}\s]*$/,
            rx_two = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
            rx_three = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
            rx_four = /(?:^|:|,)(?:\s*\[)+/g,
            rx_escapable = /[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
            rx_dangerous = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
            gap, indent, meta, rep;

        function f(t) {
            return t < 10 ? "0" + t : t
        }

        function this_value() {
            return this.valueOf()
        }

        function quote(t) {
            return rx_escapable.lastIndex = 0, rx_escapable.test(t) ? '"' + t.replace(rx_escapable, function(t) {
                var e = meta[t];
                return "string" == typeof e ? e : "\\u" + ("0000" + t.charCodeAt(0).toString(16)).slice(-4)
            }) + '"' : '"' + t + '"'
        }

        function str(t, e) {
            var n, r, o, a, i, c = gap,
                u = e[t];
            switch (u && "object" === (void 0 === u ? "undefined" : _typeof(u)) && "function" == typeof u.toJSON && (u = u.toJSON(t)), "function" == typeof rep && (u = rep.call(e, t, u)), void 0 === u ? "undefined" : _typeof(u)) {
                case "string":
                    return quote(u);
                case "number":
                    return isFinite(u) ? String(u) : "null";
                case "boolean":
                case "null":
                    return String(u);
                case "object":
                    if (!u) return "null";
                    if (gap += indent, i = [], "[object Array]" === Object.prototype.toString.apply(u)) {
                        for (a = u.length, n = 0; n < a; n += 1) i[n] = str(n, u) || "null";
                        return o = 0 === i.length ? "[]" : gap ? "[\n" + gap + i.join(",\n" + gap) + "\n" + c + "]" : "[" + i.join(",") + "]", gap = c, o
                    }
                    if (rep && "object" === (void 0 === rep ? "undefined" : _typeof(rep)))
                        for (a = rep.length, n = 0; n < a; n += 1) "string" == typeof rep[n] && (o = str(r = rep[n], u)) && i.push(quote(r) + (gap ? ": " : ":") + o);
                    else
                        for (r in u) Object.prototype.hasOwnProperty.call(u, r) && (o = str(r, u)) && i.push(quote(r) + (gap ? ": " : ":") + o);
                    return o = 0 === i.length ? "{}" : gap ? "{\n" + gap + i.join(",\n" + gap) + "\n" + c + "}" : "{" + i.join(",") + "}", gap = c, o
            }
        }
        "function" != typeof Date.prototype.toJSON && (Date.prototype.toJSON = function() {
            return isFinite(this.valueOf()) ? this.getUTCFullYear() + "-" + f(this.getUTCMonth() + 1) + "-" + f(this.getUTCDate()) + "T" + f(this.getUTCHours()) + ":" + f(this.getUTCMinutes()) + ":" + f(this.getUTCSeconds()) + "Z" : null
        }, Boolean.prototype.toJSON = this_value, Number.prototype.toJSON = this_value, String.prototype.toJSON = this_value), "function" != typeof JSON.stringify && (meta = {
            "\b": "\\b",
            "\t": "\\t",
            "\n": "\\n",
            "\f": "\\f",
            "\r": "\\r",
            '"': '\\"',
            "\\": "\\\\"
        }, JSON.stringify = function(t, e, n) {
            var r;
            if (gap = "", indent = "", "number" == typeof n)
                for (r = 0; r < n; r += 1) indent += " ";
            else "string" == typeof n && (indent = n);
            if (rep = e, e && "function" != typeof e && ("object" !== (void 0 === e ? "undefined" : _typeof(e)) || "number" != typeof e.length)) throw new Error("JSON.stringify");
            return str("", {
                "": t
            })
        }), "function" != typeof JSON.parse && (JSON.parse = function(text, reviver) {
            var j;

            function walk(t, e) {
                var n, r, o = t[e];
                if (o && "object" === (void 0 === o ? "undefined" : _typeof(o)))
                    for (n in o) Object.prototype.hasOwnProperty.call(o, n) && ((r = walk(o, n)) !== undefined ? o[n] = r : delete o[n]);
                return reviver.call(t, e, o)
            }
            if (text = String(text), rx_dangerous.lastIndex = 0, rx_dangerous.test(text) && (text = text.replace(rx_dangerous, function(t) {
                    return "\\u" + ("0000" + t.charCodeAt(0).toString(16)).slice(-4)
                })), rx_one.test(text.replace(rx_two, "@").replace(rx_three, "]").replace(rx_four, ""))) return j = eval("(" + text + ")"), "function" == typeof reviver ? walk({
                "": j
            }, "") : j;
            throw new SyntaxError("JSON.parse")
        })
    }()
}, function(t, e, n) {
    "use strict";
    var r, o, a = n(5),
        i = {
            ERROR_TYPE_FRAMEJS_DOWNLOAD_FAIL: 16,
            ERROR_TYPE_JSONP_PREHANDLE: 17,
            ERROR_TYPE_FRAMEJS_CODE_ERROR: 18,
            CALLBACK_NAME: 19,
            IFRAME_CREATE_ERROR: 25,
            IFRAME_POPUP_CREATE_ERROR: 26,
            IFRAME_FULL_CREATE_ERROR: 27,
            OTHER_DOMAIN_MONITOR: 38,
            FRAME_JS_LOAD_TIMEOUT: 40
        },
        c = {
            ERROR_TYPE_FRAMEJS_DOWNLOAD_FAIL: "ERROR_TYPE_FRAMEJS_DOWNLOAD_FAIL",
            ERROR_TYPE_JSONP_PREHANDLE: "ERROR_TYPE_JSONP_PREHANDLE",
            ERROR_TYPE_FRAMEJS_CODE_ERROR: "ERROR_TYPE_FRAMEJS_CODE_ERROR",
            CALLBACK_NAME: "CALLBACK_NAME"
        },
        u = (r = document.referrer, o = location.href || document.URL, r = r.length > 512 ? r.substr(0, 512) : r, o = o.length > 1024 ? o.substr(0, 1024) : o, ["referer=" + encodeURIComponent(r), "href=" + encodeURIComponent(o)].join("&"));
    t.exports = {
        type: i,
        send: function(t, e, n) {
            try {
                (n = n || c[t]).length > 1024 && n.substr(0, 1024);
                var r = ["type=" + (t = i[t]), "appid=" + e, "reason=" + encodeURIComponent(n)],
                    o = "https://sv.aq.qq.com/cn2/manage/mbtoken/cap_monitor?" + u + "&" + r.join("&");
                (new Image).src = a(o)
            } catch (s) {}
        },
        perfectStack: function(t) {
            var e = "";
            t && t.stack && (e = t.stack.replace(/\n/gi, "").split(/\bat\b/).join("\n").replace(/\?[^:]+/gi, ""));
            try {
                var n = t.toString();
                e.indexOf(n) < 0 && (e = n + "@" + e)
            } catch (r) {}
            return e
        }
    }
}, , , function(module, exports, __webpack_require__) {
    "use strict";
    var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
        return typeof t
    } : function(t) {
        return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
    };
    if (!0 === window.__TencentCaptchaExists__) throw new Error("\u8bf7\u52ff\u591a\u6b21\u5f15\u7528\u817e\u8baf\u9a8c\u8bc1\u7801\u7684\u63a5\u5165js");
    window.__TencentCaptchaExists__ = !0;
    var _require = __webpack_require__(4),
        getErrorRes = _require.getErrorRes,
        Executor = __webpack_require__(15),
        _require2 = __webpack_require__(6),
        getScriptUrl = _require2.getScriptUrl,
        _require3 = __webpack_require__(2),
        getHref = _require3.getHref;
    __webpack_require__(10);
    var domReady = __webpack_require__(16),
        btoa = window.btoa || __webpack_require__(17),
        extend = Object.assign || __webpack_require__(1),
        loadFrameJs = __webpack_require__(18),
        eventListener = __webpack_require__(9),
        isIEVar = __webpack_require__(19),
        isElement = __webpack_require__(20),
        getScriptDomain = __webpack_require__(21),
        scriptDomain = getScriptDomain() || "",
        isWechatDevtools = navigator.userAgent && /wechatdevtools/.test(navigator.userAgent),
        isWindows = /windows/i.test(navigator.userAgent),
        isMobile = !isWindows && ("ontouchstart" in window || "ontouchstart" in document.createElement("div") || isWechatDevtools),
        capDomain = "https://t.captcha.qq.com";
    capDomain || (capDomain = scriptDomain), window.AqSCodeCapDomain = capDomain;
    var cdnDomain = "https://captcha.gtimg.com/1",
        grayscaleFrameJs = "/tcaptcha-frame.85d7a77d.js",
        capError = __webpack_require__(11),
        capObj = void 0,
        initQueueCount = 0,
        initQueue = [],
        loadErrorTimeout = !1,
        defaultOpt = {
            type: "popup",
            pos: isIEVar(6) ? "absolute" : "fixed",
            lang: 2052,
            showHeader: isMobile,
            needFeedBack: true,
            themeColor: "",
            tcaptchaFlag: !0,
            gettype: "cap_union_prehandle",
            domain: capDomain,
            htdoc_path: capDomain
        },
        noop = function() {},
        callbackWrap = function(t, e) {
            return function(n) {
                "object" === (void 0 === n ? "undefined" : _typeof(n)) && (n = extend({
                    bizState: t.options.bizState,
                    appid: t.options.appid
                }, n)), e && e(n)
            }
        },
        executor = new Executor(function() {
            if (initQueue.length > 0) {
                for (var t = 0; t < initQueue.length; t++) initQueue[t].instance.show();
                initQueue.length = 0
            }
        }, 0),
        Captcha = function Captcha($btn, appid, _tcallback_, opts) {
            var bizState = void 0;
            if (isElement($btn))
                if (appid && "object" === (void 0 === appid ? "undefined" : _typeof(appid))) opts = appid, appid = null, _tcallback_ = null;
                else {
                    if (appid = appid || $btn.getAttribute("data-appid"), !_tcallback_) {
                        var callbackName = $btn.getAttribute("data-cbfn");
                        try {
                            _tcallback_ = eval("window." + callbackName)
                        } catch (e) {
                            throw new Error("Lost `callback`")
                        }
                    }
                    bizState = $btn.getAttribute("data-biz-state")
                }
            else {
                if ("string" != typeof $btn || "function" != typeof appid) throw new Error("Arguments error.");
                opts = _tcallback_, _tcallback_ = appid, appid = $btn, $btn = null
            }
            opts = opts || {}, opts.callback = _tcallback_ || opts.callback, opts.start = opts.start || noop, opts.end = opts.end || noop;
            var readyCallback = "function" == typeof opts.ready ? opts.ready : noop;
            if (opts.ready = function(t) {
                    readyCallback.call(this, t)
                }, opts.appid = appid || opts.appid, opts.bizState = bizState || opts.bizState, opts.fwidth = parseFloat(opts.fwidth) || 0, opts.sdkOpts = opts.sdkOpts || null, opts.ele = $btn, this.options = opts, "function" != typeof opts.callback) throw new Error("Lost `callback`");
            if (this.initOpts = extend({}, defaultOpt, opts), this.langFun(), $btn) {
                var that = this;
                eventListener.add($btn, "click", function() {
                    that.show()
                })
            }
            this.checkInOwnDomain(appid)
        },
        showTimeout = null;
    Captcha.prototype = {
        show: function() {
            var t = this;
            if (executor.isDone) this.__show__(), null !== showTimeout && (clearTimeout(showTimeout), showTimeout = null);
            else {
                for (var e = 0; e < initQueue.length; e++)
                    if (initQueue[e].instance === this) return;
                var n = initQueueCount += 1;
                initQueue.push({
                    instance: this,
                    index: n
                }), null === showTimeout && (showTimeout = setTimeout(function() {
                    showTimeout = null;
                    for (var e = 0; e < initQueue.length; e++) {
                        if (initQueue[e].index === n) return initQueue.splice(e, 1), t.initOpts.callback(getErrorRes("CAPTCHA_SHOW_TIMEOUT", t.initOpts.appid))
                    }
                }, 1e4))
            }
        },
        __show__: function() {
            var t = this.initOpts;
            if ("undefined" == typeof window.AqSCode) return loadErrorTimeout ? (capError.send("FRAME_JS_LOAD_TIMEOUT", "", grayscaleFrameJs), t.callback(getErrorRes("FRAMEJS_LOAD_TIMEOUT", t.appid))) : (capError.send("ERROR_TYPE_FRAMEJS_DOWNLOAD_FAIL", "", grayscaleFrameJs), t.callback(getErrorRes("FRAMEJS_LOAD_ERROR", t.appid)));
            this.destroy();
            var e = [];
            e.push("aid=" + t.appid), e.push("protocol=https"), e.push("accver=1"), e.push("showtype=" + t.type), e.push("ua=" + encodeURIComponent(btoa((navigator.userAgent || "").replace(/[\u00ff-\uffff]+/g, "")))), e.push("noheader=" + ("" + t.showHeader == "false" ? "1" : "0")), e.push("fb=" + ("" + t.needFeedBack == "false" ? "0" : "1"));
            var n = t.enableDarkMode;
            "force" !== n && (n = n ? "1" : "0");
            var r = t.enableAged;
            e.push("aged=" + ("force" === r ? "1" : "0")), e.push("enableAged=" + (r ? "1" : "0")), e.push("enableDarkMode=" + n), t.sid && e.push("sid=" + t.sid), t.uid = "" + (t.uin || ""), e.push("grayscale=1"), t.grayscale = 1, isMobile && "point" !== t.type ? (e.push("clientype=1"), t.clientype = 1, t.forceLang && e.push("lang=" + t.forceLang), t.params = "?" + e.join("&")) : (e.push("clientype=2"), t.clientype = 2, t.forceLang && e.push("lang=" + t.forceLang), t.params = "?" + e.join("&"), t.s_type_suffix = "?" + e.join("&"), t.src = capDomain + "/template/placeholder_v2.html" + t.s_type_suffix, t.s_type = capDomain + "/cap_union_prehandle" + t.s_type_suffix, t.slide_src = capDomain + "/template/new_slide_placeholder.html" + t.s_type_suffix), t.fb = "" + t.needFeedBack == "false" ? "0" : "1", t.frameJs = grayscaleFrameJs;
            try {
                (capObj = new AqSCode(t)).listen(callbackWrap(this, t.callback), callbackWrap(this, t.ready)), (t.top || t.left) && capObj.initPos({
                    top: t.top || undefined,
                    left: t.left || undefined
                }), capObj.create()
            } catch (o) {
                capError.send("ERROR_TYPE_FRAMEJS_CODE_ERROR", t.appid, "entry create err: " + o.message)
            }
        },
        langFun: function() {
            if (this.initOpts.forceLang) {
                var t = {
                        "zh-cn": "2052",
                        "zh-hk": "1028",
                        en: "1033"
                    },
                    e = this.initOpts.forceLang;
                t[e] ? (this.initOpts.lang = t[e], this.initOpts.forceLang = t[e], this.initOpts.forcestyle = 1) : this.initOpts.forceLang = ""
            }
        },
        destroy: function() {
            capObj && capObj.destroy && capObj.destroy()
        },
        refresh: function() {
            capObj && capObj.refresh && capObj.refresh()
        },
        getTicket: function() {
            if (capObj && capObj.getTicket) {
                var t = null;
                return callbackWrap(this, function(e) {
                    t = e
                })(capObj.getTicket()), t
            }
            return null
        },
        checkInOwnDomain: function(t) {
            try {
                var e = [/captcha\.qq\.com/, /\.captcha\.qcloud\.com/, /captcha\.myqcloud\.com/, /captcha\.253\.com/, /t-captcha\.gjacky\.com/],
                    n = getScriptUrl();
                if (!n) return;
                for (var r = n.stack, o = !1, a = 0; a < e.length; a++) {
                    var i = e[a];
                    if (r.match(i)) {
                        o = !0;
                        break
                    }
                }
                o || capError.send("OTHER_DOMAIN_MONITOR", t, getHref() + " " + r)
            } catch (c) {}
        }
    };
    var autoBindBtn = function() {
            var t = document.getElementById("TencentCaptcha");
            t && new Captcha(t)
        },
        domReadyCb = function() {
            try {
                autoBindBtn()
            } catch (t) {}
        };
    executor.exec(function(t) {
        var e = !1;
        domReady(function() {
            e || (e = !0, domReadyCb(), t())
        })
    }), executor.exec(function(t) {
        loadFrameJs(grayscaleFrameJs, cdnDomain, capDomain, function() {
            return "undefined" != typeof window.AqSCode
        }, function() {
            t()
        }, function(e) {
            loadErrorTimeout = !0 === e, t()
        })
    }), window.TencentCaptcha = Captcha
}, function(t, e, n) {
    "use strict";
    var r = function(t, e) {
        this.i = 0, this.doneCallback = t, this.isDone = !1, this.timeout = e || 0;
        var n = this;
        this.immediateExec = setTimeout(function() {
            n.doneCheck()
        }, 0)
    };
    r.prototype = {
        doneCheck: function(t, e) {
            try {
                t && t(e)
            } catch (n) {}
            if (this.i--, this.i <= 0) try {
                this.isDone = !0, this.doneCallback()
            } catch (n) {}
        },
        exec: function(t, e, n) {
            clearTimeout(this.immediateExec);
            var r = !1,
                o = "",
                a = this;
            this.i++, this.i > 0 && (this.isDone = !1);
            try {
                (o = t(function(t) {
                    r || (r = !0, setTimeout(function() {
                        a.doneCheck(e, t)
                    }, 0))
                })) && (r = !0, setTimeout(function() {
                    a.doneCheck(e, o)
                }, 0))
            } catch (i) {}(n = n || this.timeout || 0) > 0 && setTimeout(function() {
                r || (r = !0, a.doneCheck(e, ""))
            }, n)
        }
    }, t.exports = r
}, function(t, e, n) {
    t.exports = function(t) {
        var e, n = [],
            r = document,
            o = r.documentElement,
            a = o.doScroll,
            i = (a ? /^loaded|^c/ : /^loaded|c/).test(r.readyState);

        function c(t) {
            for (i = 1; t = n.shift();) t()
        }
        return r.addEventListener && r.addEventListener("DOMContentLoaded", e = function() {
            r.removeEventListener("DOMContentLoaded", e, !1), c()
        }, !1), a && r.attachEvent("onreadystatechange", e = function() {
            /^c/.test(r.readyState) && (r.detachEvent("onreadystatechange", e), c())
        }), t = a ? function(e) {
            self != top ? i ? e() : n.push(e) : function() {
                try {
                    o.doScroll("left")
                } catch (n) {
                    return setTimeout(function() {
                        t(e)
                    }, 50)
                }
                e()
            }()
        } : function(t) {
            i ? t() : n.push(t)
        }
    }()
}, function(t, e, n) {
    "use strict";
    var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
        o = function(t) {
            var e = [0, 2, 1][t.length % 3],
                n = t.charCodeAt(0) << 16 | (t.length > 1 ? t.charCodeAt(1) : 0) << 8 | (t.length > 2 ? t.charCodeAt(2) : 0);
            return [r.charAt(n >>> 18), r.charAt(n >>> 12 & 63), e >= 2 ? "=" : r.charAt(n >>> 6 & 63), e >= 1 ? "=" : r.charAt(63 & n)].join("")
        };
    t.exports = function(t) {
        return t.replace(/[\s\S]{1,3}/g, o)
    }
}, function(t, e, n) {
    "use strict";
    var r = 2;
    t.exports = function o(t, e, n, a, i, c, u) {
        u = u || 1;
        var s = !1,
            p = document.createElement("script");

        function f(t) {
            s || (t && "load" === t.type || /^(loaded|complete)$/.test(this.readyState)) && (a() ? (s = !0, i && i()) : l())
        }
        p.type = "text/javascript", p.async = !0, p.src = (u > 1 ? n : e) + t, "onload" in p ? p.onload = f : p.onreadystatechange = f;
        var l = function(f) {
            s || (s = !0, document.getElementsByTagName("head").item(0).removeChild(p), u >= r ? c && c(f) : o(t, e, n, a, i, c, u + 1))
        };
        p.onerror = l, document.getElementsByTagName("head").item(0).appendChild(p), setTimeout(function() {
            l(!0)
        }, 15e3)
    }
}, function(t, e, n) {
    "use strict";
    t.exports = function(t) {
        var e = document.createElement("b");
        return e.innerHTML = "\x3c!--[if IE " + t + "]><i></i><![endif]--\x3e", e.getElementsByTagName("i") && 1 === e.getElementsByTagName("i").length
    }
}, function(t, e, n) {
    "use strict";
    var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
        return typeof t
    } : function(t) {
        return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
    };
    t.exports = function(t) {
        try {
            return t instanceof HTMLElement
        } catch (e) {
            return "object" === (void 0 === t ? "undefined" : r(t)) && 1 === t.nodeType && "object" === r(t.style) && "object" === r(t.ownerDocument)
        }
    }
}, function(t, e, n) {
    "use strict";
    var r = n(3).href,
        o = function(t) {
            var e = t.split("?");
            if (2 !== e.length) return {};
            for (var n = e[1] && e[1].split("&"), r = {}, o = 0; o < n.length; o++) {
                var a = n[o].split("=");
                a[1] && (r[a[0]] = decodeURIComponent(a[1]))
            }
            return r
        },
        a = function() {
            for (var t = document.getElementsByTagName("script"), e = 0; e < t.length; e++) {
                var n = t[e];
                if (n.src.match(/captcha\.js/i)) return n
            }
        };
    t.exports = function() {
        try {
            var t = document.getElementById("CaptchaScript") || a() || "";
            if (!t) return "";
            var e = t.src,
                n = o(e).domain;
            if (n) return n;
            var i = /(https?\:\/\/[0-9a-zA-Z-:\.]+)\//i,
                c = e.match(i) || r().match(i);
            return c ? c[1] : ""
        } catch (u) {
            return ""
        }
    }
}]);